from django.db import models


# Create your models here.

class Source(models.Model):
    id = models.AutoField(primary_key=True)
    data_zh_name = models.CharField(max_length=128,verbose_name="数据集中文名称")
    data_en_name = models.CharField(max_length=255,verbose_name="数据集英文名称")
    data_source = models.CharField(max_length=255,verbose_name="数据集来源")
    data_mark = models.CharField(max_length=255,verbose_name="科技资源标识符")
    other_mark = models.CharField(max_length=255,verbose_name="其它标识符")
    creator = models.CharField(max_length=255,verbose_name="创建者")
    version = models.CharField(max_length=255,verbose_name="版本")
    modify_data = models.CharField(max_length=255,verbose_name="最新修改时间")
    create_data = models.CharField(max_length=255,verbose_name="创建时间")
    data_size = models.CharField(max_length=255,verbose_name="数据大小")
    record = models.CharField(max_length=255,verbose_name="数据记录数")
    format = models.CharField(max_length=255,verbose_name="数据格式")
    share = models.CharField(max_length=255,verbose_name="数据共享方式")
    languages = models.CharField(max_length=255,verbose_name="语种")
    geographical  = models.CharField(max_length=255,verbose_name="地理范围")
    describe  = models.CharField(max_length=255,verbose_name="描述")
    keywords  = models.CharField(max_length=255,verbose_name="关键词")
    level_one  = models.CharField(max_length=255,verbose_name="一级分类")
    level_two  = models.CharField(max_length=255,verbose_name="二级分类")
    type  = models.CharField(max_length=255,verbose_name="资源类型")
    producers  = models.CharField(max_length=255,verbose_name="生产者")
    organization  = models.CharField(max_length=255,verbose_name="所在机构")
    contact  = models.CharField(max_length=255,verbose_name="联系人")
    phone   = models.CharField(max_length=255,verbose_name="联系电话")
    email  = models.CharField(max_length=255,verbose_name="邮箱")
    Contact_unit  = models.CharField(max_length=255,verbose_name="联系单位")
    Contact_address  = models.CharField(max_length=255,verbose_name="联系地址")
    Links   = models.CharField(max_length=255,verbose_name="资源链接")
    project   = models.CharField(max_length=255,verbose_name="项目名称")
    source  = models.CharField(max_length=255,verbose_name="项目来源")
    number  = models.CharField(max_length=255,verbose_name="项目编号")
    attachment  = models.CharField(max_length=255,verbose_name="附件")
    information  = models.CharField(max_length=255,verbose_name="版本信息")
    reference   = models.CharField(max_length=255,verbose_name="引用格式")
    data  = models.CharField(max_length=255,verbose_name="数据")
    instructions  = models.CharField(max_length=255,verbose_name="数据使用说明")
    data_reference  = models.CharField(max_length=255,verbose_name="数据引用参考")
    way  = models.CharField(max_length=255,verbose_name="致谢方式")

    class Meta:
        db_table = 'source'
